package lib.common.use;

import com.app.dialog.DialogLoading_weixin;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.view.Menu;

public class DialogElapsedTimeActivity extends Activity {

	DialogElapsedTimeActivity activity = this;
	
	Handler handler = new Handler();
	boolean bRun = true;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_dialog_elapsed_time);
		
		
		final int delayMillis = 10;
		handler.postDelayed( new Runnable() {
			
			@Override
			public void run() {
				// TODO Auto-generated method stub
				
				if(bRun){
					DialogLoading_weixin.DismissProgressDialog();
					DialogLoading_weixin.ShowNoTitleDialog(activity);
					handler.postDelayed(this, delayMillis);
				}
				
			}
		}, delayMillis);
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.dialog_elapsed_time, menu);
		return true;
	}
	
	
	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
		
		bRun = false;
	}

	
}



